package cn.com.paycn.ken.dao.impl;

import cn.com.paycn.ken.dao.StaticParamDao;
import cn.com.paycn.ken.hbm.Member;
import cn.com.paycn.ken.hbm.StaticParam;
import java.util.List;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Repository("staticParamDao")
public class StaticParamDaoImpl extends BaseDaoImpl
  implements StaticParamDao
{
  public Long getParameterCount(StaticParam parameter, Member member)
  {
    return null;
  }

  public List getParameterList(StaticParam parameter, Member member, Integer page, Integer count)
  {
    return null;
  }

  public List getList(String paramName)
  {
    return super.find("from StaticParam s where s.paramName = ?", new Object[] { paramName });
  }

  public StaticParam getParam(String paramId) {
    return (StaticParam)super.first("from StaticParam s where s.paramId = ?", new Object[] { paramId });
  }
  public StaticParam getParam(String paramName, String itemValue) {
    return (StaticParam)super.find("from StaticParam s where s.paramName = ? and s.itemValue = ?", new Object[] { paramName, itemValue });
  }

  public List<StaticParam> getStaticParam()
  {
    String hqlStr = "from StaticParam s";
    return super.find(hqlStr);
  }
}